package cn.intotw.rdcj.goods.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Chenxiang
 * @Description:
 * @create 2020/4/30 11:46
 */
@Data
public class GoodsReduceReqVo implements Serializable {
    /**
     * 货物id
     */
    @NotBlank
    private String goodsId;
    /**
     * 购买数量
     */
    @Min(value = 1,message = "货物至少需要购买1个")
    private Integer goodsNum;
    /**
     * 订单id
     */
    @Min(value = 1,message = "订单id不能小于1")
    private Long orderId;
    /**
     * 备注
     */
    private String remark;
}